﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Framework.DCI;
using Domain.Module.Roles;
using Infrastructure.DataObjects;

namespace Domain.Context
{
    public class CommentContext : IContext
    {
        #region IContext Members

        ICommentator _commentator;
        IBeCommented _beCommented;
        CommentObject _commentObj;

        public CommentContext(ICommentator commentator, IBeCommented beCommented, CommentObject commentObj)
        {
            _commentator = commentator;
            _beCommented = beCommented;
            _commentObj = commentObj;
        }

        public void Interactive()
        {
            _commentator.DoComment(_beCommented, _commentObj);
        }

        #endregion
    }
}
